import React from 'react';
import { Button, Carousel } from 'antd-mobile';
import './sickhistory.css'
import TimeBase from './TimeBase.jsx'
const dataSource = [
    {
        id: 1,
        time: '2019-11-13',
        text: '艾滋病，冠心病，心愿性猝死又复活'
    },
    {
        id: 2,
        time: '2019-11-14',
        text: '晚了，没得治，滚吧'
    },
    {
        id: 3,
        time: '2019-11-14',
        text: '没病，瞎搞，请回'
    }
]
class SickHistory extends React.Component {    
    render() {
        let items = dataSource.map( (val, index) => {
            return <TimeBase key={ index } time={val.time} text={val.text}/>
        });
        return (
            <div className="sick-history-wrap">                
                { items }
            </div>
        )
    }
}

//导出组件；
export default SickHistory;
